-
-
Notifications
You must be signed in to change notification settings - Fork 35
fix(deps): update dependency pdfjs-dist to v5 [security] #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/npm-pdfjs-dist-vulnerability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a66cc13
to
d3754ed
Compare
693e413
to
9745c06
Compare
dfe0a0a
to
c89fc0f
Compare
7d5c4ba
to
0c31352
Compare
2206bb6
to
a8c85ea
Compare
b6cb31f
to
3c03da8
Compare
5e75682
to
cddb0a6
Compare
355ab8a
to
1ea4f2d
Compare
c2d938d
to
a70d00a
Compare
b88aa14
to
e093843
Compare
e35d156
to
66ec744
Compare
a39e219
to
cd6d43c
Compare
9fdb332
to
49b1a71
Compare
49b1a71
to
599e424
Compare
6904cc7
to
312226c
Compare
44c4696
to
a68d9b0
Compare
8c5ed6d
to
98e1dfc
Compare
98e1dfc
to
600f820
Compare
600f820
to
f486ae8
Compare
f486ae8
to
3f782f6
Compare
3f782f6
to
4ce0ac4
Compare
4ce0ac4
to
b36e4e9
Compare
b36e4e9
to
7840fea
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.0
->^5.0.0
GitHub Vulnerability Alerts
CVE-2024-4367
Impact
If pdf.js is used to load a malicious PDF, and PDF.js is configured with
isEvalSupported
set totrue
(which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.Patches
The patch removes the use of
eval
:https://github.com/mozilla/pdf.js/pull/18015
Workarounds
Set the option
isEvalSupported
tofalse
.References
https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
Release Notes
mozilla/pdf.js (pdfjs-dist)
v5.1.91
Compare Source
This release contains improvements for the annotation editor, font conversion, performance, SMask rendering and the viewer, as well as bugfixes and improvements after feedback on the initial PDF.js 5.0 release.
Changes since v5.0.375
pdfjs.config
by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19663PDFDocumentLoadingTask
-instance (issue 15085) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196325.1
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19667fetchSync
helper function for theIccColorSpace
classes by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19675async
code in thesrc/core/document.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19674addSignatureDescription
/editSignatureDescription
handling (issue 19683) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19684src/core/writer.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19693src/core/writer.js
a little bit by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19692setValues
function withArray.prototype.fill()
in thesrc/core/bidi.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19703AbortSignal.any
polyfill in PDF.jslegacy
builds by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19681getSupplementalGlyphMapForCalibri
with Pound-sign (issue 19695) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/196961946953
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19689Math.sumPrecise
usage in the code-base by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19710MathClamp
helper function even more (PR 19617 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19714Util
to reduce code duplication by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/197131764587
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19717Array.prototype.reduce
usage from thesrc/core/xfa/template.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19691enableAutoLinking
by default by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19701XRef
-instance explicitly to theStructTreeRoot
class, and simplify theStructElementNode.prototype.role
getter by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/197191956110
) by @calixteman in https://github.com/mozilla/pdf.js/pull/197221956114
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19725Util.rectBoundingBox
more in the annotation code (PR 19713 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/197261956513
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19728Path2D
objects for Type3-fonts by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/197311952563
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19734TilingPattern
(PR 4824 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19737PDFViewerApplication._initializeViewerComponents
method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19720buildPaintImageXObject
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19739v5.0.375
Compare Source
PDF.js 5.0 is a major release that contains a number of API changes, features and bugfixes.
The following significant new features are highlighted:
.wasm
file, which requires setting a newwasmUrl
API option in order to use it; see PR https://github.com/mozilla/pdf.js/pull/19329.wasmUrl
API option) for environments without WebAssembly support; see PR https://github.com/mozilla/pdf.js/pull/19525.wasmUrl
API option is set; see PR https://github.com/mozilla/pdf.js/pull/19564.iccUrl
API option in order to use it; see PR https://github.com/mozilla/pdf.js/pull/19620.enableAutoLinking
option/preference; see PR https://github.com/mozilla/pdf.js/pull/19110.The following significant changes are highlighted (which may require changes in third-party PDF.js implementations):
The complete list of changes in this release is shown below. If you're upgrading to PDF.js 5.0 we recommend checking the changes prefixed with
[api-minor]
and[api-major]
since those might require updates to your code.Changes since v4.10.38
pdfjs.config
by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19276getSelectedEditors
integration test helper function by @timvandermeij in https://github.com/mozilla/pdf.js/pull/19277Dict
iteration more (PR 19051 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19278waitForUnselectedEditor
integration test helper function more by @timvandermeij in https://github.com/mozilla/pdf.js/pull/192901940085
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19295MeshShadingPattern
class (issue 18816) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19305FontRendererFactory
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193171935076
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19329MissingPDFException
andUnexpectedResponseException
with one exception by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/192645.0
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19332getDocument
Factory-parameters by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19331getDocument
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193411942064
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19356import/no-restricted-paths
ESLint plugin rule for the viewer by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19353highlightSelection
waits until we've fully updated the editing-mode (issue 19369) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19371ColorPicker
for each PDF document by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19372render
-methods to take parameter objects by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19365isInEditingMode
method (PR 19311 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19381isNumberArray
helper by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19384readInt16
helper function in thesrc/core/core_utils.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/193881942343
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19339hasFieldFlag
calls in thesrc/core/annotation.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19393Annotation
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19397AnnotationElement
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19402color-mix
fallback used with PopupAnnotations by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19408pdfjs-dist
(PR 19329 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19415cMapUrl
,standardFontDataUrl
, andwasmUrl
parameters by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194161945574
) by @calixteman in https://github.com/mozilla/pdf.js/pull/194141019475
) by @ryzokuken in https://github.com/mozilla/pdf.js/pull/191101019475
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19429--save-warning-color
CSS variable typo (PR 19414 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19431PLATFORM
function (PR 19414 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19430FeatureTest
helper in thesrc/display/font_loader.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19432getPdfColorArray
helper more in thesrc/core/annotation.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19423TextLayer.#getAscent
fallback (PR 12896 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19399crypto.getRandomValues
unconditionally in thesrc/core/crypto.js
file by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19450MeshStreamReader.prototype.readBits
method a little bit by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194461946795
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19437TypedArray.prototype.fill()
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19456borderStyle
of inferred links lazily (PR 19110 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194611946171
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19425userUnit
using CSS, to fix the text/annotation layers (bug1947248
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194691947828
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19478Array.from
usage in theSignatureManager
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19485PDFPageView
helper-method, and dispatch a "linkannotationsadded" event by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194751948116
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19486closeIfActive
method in theOverlayManager
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194871946181
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19427CipherTransformFactory.prototype.#buildObjectKey
method by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19496useWorkerFetch
fallback value is always a boolean by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19499eslint-disable
statements in theweb/
folder by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195031948771
) by @calixteman in https://github.com/mozilla/pdf.js/pull/195071948741
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19506arrow-body-style
warnings by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195041949201
) by @calixteman in https://github.com/mozilla/pdf.js/pull/195161949417
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19522JpegStream
(PR 19356 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19518URL.parse()
usage in the code-base by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/194931492303
) by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/191281935076
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19525useWorkerFetch
option is used internally by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19537assert
inFontLoader.prototype.loadSystemFont
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195511945827
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19554#renderError
onRenderingCancelledException
(PR 19128 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19558disableFontFace
andfontExtraProperties
as part of the exported font-data by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19548PDFViewerApplication._initializeViewerComponents
by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19556PDFViewer
, when closing the document (PR 19128 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19557getGlyphMapForStandardFonts
with some Cyrillic entries (issue 19550) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19562TranslatedFont.prototype.loadType3Data
only once per font by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195631951128
) by @calixteman in https://github.com/mozilla/pdf.js/pull/19584GlobalColorSpaceCache
to reduce unnecessary re-parsing by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19583PDFWorker.fromPort()
by @yjoer in https://github.com/mozilla/pdf.js/pull/19571FakeMLManager
class in regular builds by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19568TypedArray.prototype.fill()
in theRunLengthStream
class by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19589.error
-file created for broken test-manifest links (issue 19579) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19581isValidExplicitDest
helper function in the worker/viewer by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19577Promise.then
calls by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/195971943094
) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19604ColorSpaceUtils.parseAsync
and simplify the ColorSpace "API-surface" by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19599ColorSpaceUtils.singletons
handling (PR 19564 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19607opacityToHex
helper function (PR 19093 follow-up) by @Snuffleupagus in https://github.com/mozilla/pdf.js/pull/19610Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.